<!--婚嫁资源——外聘人员-->
{% extends 'indexLayout.html' %}
{% load static %}
{% block title %}
    <title>囍管家——婚嫁资源</title>
{% endblock %}
{#    Coding you Css#}
{% block css %}
    <link rel="stylesheet" href="{% static 'css/indexRes.css' %}">
{% endblock %}

{% block content %}
    <!-- 容器 -->
    <div class="box">
        <!-- 列表导航 -->
        <nav>
            <ul data-type="{{ types }}">
                <li><a href="/index/marriage_resources/"><i class="fa fa-vcard"></i> 婚庆公司</a></li>
                <li><a href="/index/marriage_resources/主持/type/"><i class="fa fa-child"></i> 主持</a></li>
                <li><a href="/index/marriage_resources/傧相/type/"><i class="fa fa-street-view"></i> 傧相</a></li>
                <li><a href="/index/marriage_resources/摄影师/type/"><i class="fa fa-film"></i> 摄影师</a></li>
                <li><a href="/index/marriage_resources/摄像师/type/"><i class="fa fa-dot-circle-o"></i> 摄像师</a></li>
                <li><a href="/index/marriage_resources/化妆师/type/"><i class="fa fa-magic"></i> 化妆师</a></li>
                <li><a href="/index/marriage_resources/礼服/type/"><i class="fa fa-user-secret"></i> 礼服</a></li>
                <li><a href="/index/marriage_resources/喜礼/type/"><i class="fa fa-gift"></i> 喜礼</a></li>
                <li><a href="/index/marriage_resources/车队/type/"><i class="fa fa-truck"></i> 车队</a></li>
                <li><a href="/index/marriage_resources/婚礼管家/type/"><i class="fa fa-reorder"></i> 婚礼管家</a></li>
                {% if user_type == '管理员' %}
                    <li>
                        <button type="button" class="btn btn-primary" id="my-edit-button">编辑模式</button>
                    </li>
                {% endif %}
            </ul>
        </nav>
        <!-- 列表导航 -->
        <!-- 图片表格 -->
        {% if employee_obj_index %}
            <table class="my-border">
                {% for employee_row in employee_obj_index %}
                    <tr>
                        {% for obj in employee_row %}
                            <td>
                                <a href="/index/marriage_resources/employees/{{ obj.employeeId }}/detail">
                                    <img class="td-img" src="{% static obj.img_index.url %}" alt="婚庆公司">
                                </a>
                                <p style="font-size:20px;margin-top: 10px; font-weight:bold;"><span
                                        class="color">{{ obj.name_employee }}</span></p>
                                <div class="td-button">
                                    {#                            <button type="button" class="btn btn-primary">修改</button>#}
                                    <button type="button" class="btn btn-danger" data-page-name="employeeId"
                                            data-page-id="{{ obj.employeeId }}">删除
                                    </button>
                                </div>
                            </td>
                        {% endfor %}
                    </tr>
                {% endfor %}
            </table>
            <!-- 图片表格 -->
        {% else %}
            <h4 style="text-align: center"><i class="fa fa-calendar-plus-o"></i> 资源空空如也，快去添加吧</h4>
        {% endif %}

    </div>

{% endblock %}
{#Coding you Js#}
{% block js %}
    <script src="{% static 'js/indexRes.js' %}" type="text/javascript"></script>

{% endblock %}
